<?php
namespace Admin\Model;
use Think\Model\RelationModel;


class CompanyModel extends RelationModel {
	//关联表
	protected $_link = array(
	    'major' => array(
	        'mapping_type'   => self::HAS_MANY,
	        'foreign_key'    => 'company',
	        'class_name'     => 'major',
	        'mapping_key'    => 'id',
	    ),
	);

}